import { ref, watch } from 'vue'
export default function (title = '默认title') {
  const titleRefs = ref(title)
  watch(titleRefs, (newVal) => {
    document.title = newVal
  }, {
    immediate: true
  })
  return titleRefs
}
